package mains.Tests;

import cartes.Carte;
import cartes.CouleurCarte;
import cartes.Denomination;
import junit.framework.TestCase;
import mains.Main;
import mains.RangPoker;

public class RangPokerTest extends TestCase {

	public RangPokerTest(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	public void testRangPoker() {
            //constructeur par default
	}

	public void testCompareTo() {
            //voir testCompare
	}

	public void testGetRang() {
		//RangPoker rp = new RangPoker();
	}

	public void testCompare() {
		RangPoker rp1 = new RangPoker();
                RangPoker rp2 = new RangPoker();
                Main m = new Main();
                m.add(new Carte(Denomination.DAME, CouleurCarte.COEUR));
                m.add(new Carte(Denomination.DAME, CouleurCarte.COEUR));
                rp1 = RangPoker.getRang(m);
                rp2 = RangPoker.getRang(m);
                
                assertTrue(rp1.compareTo(rp2) == 0);
	}

}
